import QtQuick 2.0
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.14

Item {
    implicitHeight: checkRec.width
    implicitWidth: checkRec.width
    property bool conected: false

    Rectangle{
        id:checkRec
        color:"blue"
        RowLayout{
            Rectangle{
               width: 25
               height: 25
               radius: width / 2
               color: conected ? "#2FF569" : "#ADADAD"
            }

            Text {
                id: name
                text: conected ? "已连接！" : "未连接！"
                color: conected ? "" : "red"
            }
        }
    }
}
